package com.example.shopproject.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Entity
@Data
@Table(name = "comment")
public class Shopcomment {

    @Id
    private Integer commentId;
    @OneToOne
    @JoinColumn(name = "shopId")
    private Shop shop;
    private String commentText;
    private String commentTime;

}
